<?php
/**
 * Created by PhpStorm.
 * User: shaoxia
 * Date: 19-12-5
 * Time: 下午2:36
 */
try{
    defined('YII_DEBUG') or define('YII_DEBUG', true);
    defined('YII_ENV') or define('YII_ENV', 'dev');
    require __DIR__."/../vendor/autoload.php";

    require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');

    $config = require(__DIR__.'/config/console.php');

    $application = new yii\console\Application($config);
    $exitCode = $application->run();
    exit($exitCode);
} catch (\Exception $e) {
    print_r($e);
}
